package com.biz;

import com.entity.BookImg;
import com.entity.Books;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface IBookBiz {
    //不定项查询
    public PageInfo getAll(Books books, Integer pageNum);

    //增加
    public void addBook(Books books);

    //修改
    public void modBook(Books books);

    //删除
    public void delBook(int bid);

    //获取一个
    public Books getById(int bid);

    //增加图书图片
    public Integer addBookImg(BookImg bookImg);

    public Integer getNewBook();

    //根据bookid  获取图书详情
    public Books getByBookId(Integer bookid);

}
